﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

namespace VentaPorCatalogos
{
    public partial class Site : System.Web.UI.MasterPage
    {

        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void lgsStatus_LoggingOut(object sender, LoginCancelEventArgs e)
        {
        }

        protected void lbLogout_Click(object sender, EventArgs e)
        {
            try
            {
                // Limpiamos los datos de usuario de sesión
                Session["User"] = null;
                FormsAuthentication.SignOut();
                Response.Redirect("~/Login/Login.aspx", true);
            }
            catch (Exception)
            {
                
            }
        }
    }
}